// //图层
// var gaodeVector = new ol.layer.Tile({
//   title: "高德地图_矢量图层",
//   source: new ol.source.XYZ({
//     url: "http://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}",
//     wrapX: false,
//     crossOrigin: "Anonymous",
//   }),
// })

// //卫星图层
// var gaodeImage = new ol.layer.Tile({
//   title: "高德地图_卫星地图",
//   source: new ol.source.XYZ({
//     url: "http://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=6&x={x}&y={y}&z={z}",
//     wrapX: false,
//     crossOrigin: "Anonymous",
//   }),
// })

// export { gaodeVector, gaodeImage }

/* 天地图矢量图层 */
const TianDiMap_vec = new ol.layer.Tile({
  title: "天地图矢量图层",
  source: new ol.source.XYZ({
    url: "http://t0.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=32f04a8b1b2d5e54be392f00b3ce4ad3",
    wrapX: false,
    crossOrigin: "Anonymous",
  }),
})
/* 天地图注记图层 */
const TianDiMap_cva = new ol.layer.Tile({
  title: "天地图矢量注记图层",
  source: new ol.source.XYZ({
    url: "http://t0.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=32f04a8b1b2d5e54be392f00b3ce4ad3",
    wrapX: false,
    crossOrigin: "Anonymous",
  }),
})
/* 天地图影像图层 */
const TianDiMap_img = new ol.layer.Tile({
  title: "天地图影像图层",
  source: new ol.source.XYZ({
    url: "http://t0.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=32f04a8b1b2d5e54be392f00b3ce4ad3",
    wrapX: false,
    crossOrigin: "Anonymous",
  }),
})
/* 天地图影像注记图层 */
const TianDiMap_cia = new ol.layer.Tile({
  title: "天地图影像图层",
  source: new ol.source.XYZ({
    url: "http://t0.tianditu.com/DataServer?T=cia_w&x={x}&y={y}&l={z}&tk=32f04a8b1b2d5e54be392f00b3ce4ad3",
    wrapX: false,
    crossOrigin: "Anonymous",
  }),
})
export { TianDiMap_vec, TianDiMap_cva, TianDiMap_img, TianDiMap_cia }
